<?php
class vlogin extends view {
        var $scripts = array("jquery-1.9.1.min.js", "jquery.validate.js", "login.js");
		var $title = "Login";
	
	public function main(){	

?>
		<h2>Prihlasenie:</h2>

		  <form action="/prihlasenie/login" method="post" id="loguj">
			   <table>                                                                              
			   <!-- prihlasovaci form  -->
				  <tr>
					<td><label for="meno">Meno: </label></td>
					<td><input type="text" name="meno" id="meno" 
					    value="<?php if (isset($this->data['meno'])) echo $this->data['meno'] ?>" /></td>
				  </tr>
				  <tr>
					<td><label for="priezvisko">Priezvisko: </label></td>
					<td><input type="text" name="priezvisko" id="priezvisko" 
					    value="<?php if (isset($this->data['priezvisko'])) echo $this->data['priezvisko'] ?>" /></td>
				  </tr>
				  <tr>
					<td><label for="heslo">Heslo: </label></td>
					<td><input type="password" name="heslo" id="heslo" /></td>
				  </tr>
				  <tr>
					<td>
					  <input type="submit" name="prihlas" value="Prihlas" />
					</td>
				  </tr>
			   </table>
		  </form>
		  <?php if (isset($this->data['info'])){
					echo "<br /><pc class='red'><b>".$this->data['info']."</b><p/>";
		        }	
	 ;}
}
?>